Functions


Converting Process Serial Numbers and Port Names

GetPortNameFromProcessSerialNumber Obtains the port name of a process.
GetProcessSerialNumberFromPortName Obtains the process serial number of a process.

Getting Timing Information

GetCaretTime Obtains the suggested difference in ticks that should exist between blinks of the caret (usually a vertical bar marking the insertion point) in editable text.
GetDblTime Determines whether a sequence of mouse events constitutes a double click.
TickCount Obtains the current number of ticks (a tick is approximately 1/60 of a second) since the system last started up.

Making Keyboard Settings

KeyScript Changes the keyboard script (the script system used for keyboard input), changes the keyboard layout (the mapping of keys to characters) or input method within the current keyboard script (a facility for entering 2-byte characters), or makes a setting related to text input, using the supplied value.

Reading the Keyboard

GetKeys Obtains the current state of the keyboard.
KeyTranslate Converts a virtual key code to a character code based on a 'KCHR' resource.

Reading the Mouse

Button Determines whether the user pressed the mouse button.
GetMouse Obtains the current mouse location.
StillDown After receiving a mouse-down event, you can use the StillDown function to determine if the mouse button is still down.
WaitMouseUp After receiving a mouse-down event, determines if the user subsequently released the mouse.

Receiving Events

AcceptHighLevelEvent Obtains additional information associated with an event after receiving a high-level event (other than an Apple event).
EventAvail Retrieves the next available event from the Event Manager without removing the returned event from your application’s event stream.
FlushEvents Removes low-level events from the Operating System event queue.
GetEvQHdr Obtains a pointer to the header of the Operating System event queue.
GetNextEvent Retrieves events one at a time from the Event Manager.
GetOSEvent Retrieves low-level events stored in the Operating System event queue.
GetSpecificHighLevelEvent Selects and optionally retrieves a specific high-level event from your application’s high-level event queue.
OSEventAvail Retrieves an event from the Operating System event queue without removing it.
SetEventMask Sets the system event mask of your application to the specified mask.
SystemClick Handles an event after FindWindow returns the inSysWindow constant.
SystemEvent Determines if a specific event should be handled by the application or the Operating System.
SystemTask Gives time to each open desk accessory or driver to perform any periodic action.
WaitNextEvent Retrieves events one at a time from the Event Manager.

Sending Events

PPostEvent Posts events in the Operating System event queue.
PostEvent Posts events into the Operating System event queue.
PostHighLevelEvent Sends a high-level event to another application.

Miscellaneous

CallFKEYProc
CallGetNextEventFilterProc
CallGetSpecificFilterProc
CheckEventQueueForUserCancel
DisposeFKEYUPP
DisposeGetNextEventFilterUPP
DisposeGetSpecificFilterUPP
GetCurrentKeyModifiers Returns the current state of the keyboard modifier keys.
GetGlobalMouse
InvokeFKEYUPP
InvokeGetNextEventFilterUPP
InvokeGetSpecificFilterUPP
IsCmdChar
NewFKEYProc
NewFKEYUPP
NewGetNextEventFilterProc
NewGetNextEventFilterUPP
NewGetSpecificFilterProc
NewGetSpecificFilterUPP

© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)